﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CodeGenerator.Helper
{
    [Serializable]
    public class DbColumn
    {
        /// <summary>
        /// 列名
        /// </summary>
        public string Name  { set; get;}

        private string _dataType;

        /// <summary>
        /// 数据类型
        /// </summary>
        public string DataType
        {
            set { _dataType = value; }
            get
            {
                switch (_dataType.ToLower())
                {
                    case var a when a.Equals("varchar"):
                        return "string";
                }

                return _dataType;
            }
        }
    }
}
